package com.ll.tankgame;

import javax.swing.*;
import java.awt.*;

/**
 * @author liubw
 * @date 2024/6/24 0024
 */
public class HspGame extends JFrame {

    MyPanel mp = null;
    public static void main(String[] args) {
        HspGame hspGame = new HspGame();

    }

    public HspGame(){

    mp = new MyPanel();
    new Thread(mp).start();

    this.add(mp);
    this.setSize(1000,750);
    this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    this.addKeyListener(mp);
    this.setVisible(true);

    }
}
